import {Component, OnInit} from '@angular/core';
import {Hotspot} from "./share/models/hotspot";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit{

  title = 'app';
  hotspots: Hotspot[] = []

  ngOnInit(): void {
    this.hotspots.push({lng:120.19,lat:30.26,title:'网点1'})
    this.hotspots.push({lng:120.18,lat:30.25,title:'网点2'})
    this.hotspots.push({lng:120.20,lat:30.27,title:'网点3'})
  }
}
